<?php
/**
 * this is a filter for get current user
 * 
 * @param Passport $whoami
 */
function toogle_get_current_user($whoami) {
	$whoami->authorized = true;
	$whoami->id = 10;
	$whoami->name = 'Leo Ning';
	return $whoami;
}
bind ( 'get_current_user', 'toogle_get_current_user', 1 );